#include <iostream>
#include <cmath>

using namespace std;

int main(){

	int a,b,c;
	cin >> a >> b >> c;
	if ((c <= max(a,b)&&c >= min(a,b))){
		cout << max(a,b) << ' ' << c << ' ' << min(a,b);
	}
	else if ((c > max(a,b))){
		cout << c << ' ' << max(a,b) << ' ' << min(a,b);
	}
	else{
		cout << max(a,b) << ' ' << min(a,b) << ' ' << c ;
	}
    return 0;
}
